home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / anacroz.swf / scripts / frame_18 / DoAction.as
Text File  |  2010-11-09  |  737b  |  30 lines

  1. var i = 0;
  2. _root.rc_sel = 1;
  3. _root.rc_1.gotoAndStop(2);
  4. _root.edClasse2 = _root.sd_valores[GRR][CLASSE];
  5. _root.edPV2 = _root.sd_valores[GRR][PV];
  6. _root.edPM2 = _root.sd_valores[GRR][PM];
  7. _root.edATQ2 = _root.sd_valores[GRR][ATQ];
  8. _root.edDEF2 = _root.sd_valores[GRR][DEF];
  9. _root.edAGL2 = _root.sd_valores[GRR][AGL];
  10. _root.edINT2 = _root.sd_valores[GRR][INT];
  11. _root.edMRL2 = _root.sd_valores[GRR][MRL];
  12. _root.rc_total = _root.edCustoTotal = 0;
  13. i = 0;
  14. while(i < 16)
  15. {
  16.    if(tropa1.soldados[i] != undefined)
  17.    {
  18.       _root.rc_total = _root.rc_total + 1;
  19.    }
  20.    i++;
  21. }
  22. i = 1;
  23. while(i <= 6)
  24. {
  25.    _root["rc_" + i].custo = _root.sd_valores[i - 1][VALOR];
  26.    i++;
  27. }
  28. _root.rc_total_tmp = _root.rc_total;
  29. delete i;
  30.